package com.tsinghuabigdata.edu.ddmath.util;

import java.util.HashMap;

/**
 * 管理全局变量的类
 * Created by Administrator on 2017/3/15.
 */

public class GlobalData {

    private static boolean loginChange;  //是否已经上传题目图片成功
    private static HashMap<String, Boolean> qustionMap = new HashMap<String, Boolean>();
    private static HashMap<String, Boolean> teamMap    = new HashMap<String, Boolean>();

    private static boolean hasLoginNetease;  //是否已经登录过网易云信


    public static boolean isLoginChange() {
        return loginChange;
    }

    public static void setLoginChange(boolean loginChange) {
        GlobalData.loginChange = loginChange;
    }

    public static HashMap<String, Boolean> getQustionMap() {
        return qustionMap;
    }

    public static void setQustionMap(HashMap<String, Boolean> qustionMap) {
        GlobalData.qustionMap = qustionMap;
    }

    public static HashMap<String, Boolean> getTeamMap() {
        return teamMap;
    }

    public static void setTeamMap(HashMap<String, Boolean> teamMap) {
        GlobalData.teamMap = teamMap;
    }

    public static boolean isHasLoginNetease() {
        return hasLoginNetease;
    }

    public static void setHasLoginNetease(boolean hasLoginNetease) {
        GlobalData.hasLoginNetease = hasLoginNetease;
    }
}
